package com.yantong.service;

import com.yantong.pojo.ProductGrade;
import com.yantong.utils.PageUtils;

import java.util.List;

/**
 *
 * @author huangshuai-728982210@qq.com
 * @date 2021/6/8 16:46
 */
public interface ProductGradeService {
	/**
	 * 保存
	 * @param productGrade
	 * @return
	 */
	int saveProductGrade(ProductGrade productGrade);

	/**
	 * 列表
	 * @param offset
	 * @param limit
	 * @return
	 */
	PageUtils<ProductGrade> listProductGrade(ProductGrade productGrade, int offset, int limit);

	/**
	 * 更新
	 * @param productGrade
	 * @return
	 */
	int updateProductGrade(ProductGrade productGrade);

	int removeProductGrade(Long id);

	/**
	 * 详情
	 * @param id
	 * @return
	 */
	ProductGrade getProductGradeById(Long id);

	List<ProductGrade> selectByAll();


}
